/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package heresyorigins;

import java.util.ArrayList;

/**
 *
 * @author latuhin
 */
public class OriginPath {

    public static void resetCS() {
        CharScore.WS.setCharValue(0);
        CharScore.BS.setCharValue(0);
        CharScore.S.setCharValue(0);
        CharScore.T.setCharValue(0);
        CharScore.Ag.setCharValue(0);
        CharScore.Int.setCharValue(0);
        CharScore.Per.setCharValue(0);
        CharScore.WP.setCharValue(0);
        CharScore.Fel.setCharValue(0);}
    public static void resetSkills(){
    for (Skill s : Skill.values())
        s.level = 0;
    }
    public static enum CharScore { WS(0), BS(0), S(0), T(0), Ag(0),
    Int(0), Per(0), WP(0), Fel(0), W(0);//, FP(0);

    int value;

    CharScore(int value){this.value=value;}

    public int getCharValue() {return value;}

    public void setCharValue(int NewCharValue) {value=NewCharValue;}

    public void addCharValue(int add) {value= value + add;}

    public static String getAllChar() {
        String out= "";
        out = "WS:"+CharScore.WS.getCharValue()+
                " BS:"+CharScore.BS.getCharValue()+
                " S:"+CharScore.S.getCharValue()+
                " T:"+CharScore.T.getCharValue()+
                " Ag:"+CharScore.Ag.getCharValue()+
                " Int:"+CharScore.Int.getCharValue()+
                " Per:"+CharScore.Per.getCharValue()+
                " WP:"+CharScore.WP.getCharValue()+
                " Fel:"+CharScore.Fel.getCharValue();
        return out;
    }
        }
    public static enum Skill{ Survival(0,0,"Sname","Smth");
    int level;
    int type;
    String Sname;
    String Speciality;
    Skill(int level){this.level = level ;}
    Skill(int level, int type){
    this.level = level ;
    this.type = type;}
    Skill(String Sname, String Speciality){
        this.Sname = Sname;
        this.Speciality = Speciality;
    };
    Skill(int level, int type,String Sname, String Speciality){
        this.type = type;
        this.Sname = Sname;
        this.level = level;
        this.Speciality = Speciality;
    };

    String getSkillText() {
        if (level == 0 && type == 0) return "basic";
        if (level == 1 && (type == 0 || type == 1)) return "trained";
        if (level == 2 && (type == 0 || type == 1)) return "+10 Mastery";
        if (level == 3 && (type == 0 || type == 1)) return "+20 Mastery";
        if (level == 0 && type == 1) return "as untrained basic";
        return "Skill Level="+level+"; Skill Type="+type+" Combination undefined";}

    int getSkillLevel(){return level;}

    int getSkillType(){return type;}

    void addSkillLevel(){level =+1;}
    }
    }

